<div class="g-reg">
  <div class="m-hd">
    <div class="title">
      <h1>密码找回</h1>
      <div class="small">forgot</div>
    </div>
    <div class="f-cb"></div>
  </div>
  <div class="m-form">
    <form action="{$url|'member/Forgot/forgotData'}" method="post" id="form">
      <fieldset>
        <div class="formitm">
          <label class="lab"> 邮箱：</label>
          <div class="ipt">
            <input name="email" type="text" class="u-ipt u-ipt-5" maxlength="250" datatype="e" sucmsg="邮箱验证通过！" nullmsg="请输入邮箱地址！"  errormsg="邮箱格式不正确！"  />
            <span class="suffix"></span>
            <p>请输入注册时的邮箱地址，我们会发送新密码到您的邮箱！</p>
          </div>
        </div>
        <div class="formitm">
          <label class="lab"> 验证码：</label>
          <div class="ipt">
            <input name="verify" type="text" class="u-ipt u-ipt-1" maxlength="250" datatype="n4-4" sucmsg="验证码格式正确！" nullmsg="请输入验证码！"  errormsg="验证码输入不正确！"  /> 
            <span class="suffix"> <a href="javascript:;" id="verify"> <img src="{$url|'member/Register/verify'}" width="55" height="26" /> 刷新验证码</a></span>
            <p></p>
          </div>
        </div>
        <div class="formitm formitm-1">
          <button class="u-btn u-btn-lg" type="submit">确认提交</button>
          <span class="status" id="status"></span> </div>
      </fieldset>
    </form>
    <div class="f-cb"></div>
  </div>
  <div class="f-cb"></div>
</div>
<script>
Do.ready('base','form','dialog',function() {
	$('#verify').click(function() {
		$('#verify').find('img').attr('src','{$url|"member/Register/verify"}&'+Math.random());
    });
	$('#form').duxForm({
		returnFun: function(data){
			var url = "{$url|'member/Forgot/success'}";
			window.location.href=url;
		}
	});
});
</script> 